<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传</title>
</head>
<script src="../js/jquery.ocupload-1.1.2.js"></script>
<script>
    $("#but_file").upload({
        action: './houses/add',
        onComplete: function (response) {
            alert("文件上传成功")
        }
    })

</script>
<body>

<input name="file" type="file">
<button id="but_file">上传</button>


</body>
</html>